package com.zenith.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zenith.edu.po.domain.EduDepartment;
import com.zenith.edu.po.dto.EduDepartmentDTO;
import com.zenith.edu.po.vo.EduDepartmentVO;

import java.util.List;

public interface EduDepartmentService extends IService<EduDepartment> {
    
    /**
     * 创建院系
     * @param dto 院系DTO
     * @return 院系VO
     */
    EduDepartmentVO createDepartment(EduDepartmentDTO dto);
    
    /**
     * 根据ID获取院系详情
     * @param id 院系ID
     * @return 院系VO
     */
    EduDepartmentVO getDepartmentById(Long id);
    
    /**
     * 更新院系信息
     * @param dto 院系DTO
     * @return 院系VO
     */
    EduDepartmentVO updateDepartment(EduDepartmentDTO dto);
    
    /**
     * 删除指定院系
     * @param id 院系ID
     * @return 是否删除成功
     */
    boolean deleteDepartment(Long id);
    
    /**
     * 获取院系列表
     * @return 院系VO列表
     */
    List<EduDepartmentVO> getDepartmentList();
}